
/**
 * 显示错误信息集合
 * @return {TypeName} 
 */
var ErrorArray = (ErrorArray == undefined || ErrorArray == null) ? new Array() : ErrorArray;
function showErrorInfoDiv(info){
	var pe = parent.ErrorArray;
	var sum = ErrorArray.length;
	if(sum <= 0){
		return;
	}
	clearErrorInfoDiv();
	var html = "";
	html += '<div class="vReg_Error_Class_Top" style="top:'+(window.top != window.self ? $(window.top).scrollTop() : $(window).scrollTop())+'px;">';
  	html += ErrorArray.shift();//删除并返回第一个数组值
  	if(info == undefined){
	  	html += '<label style="margin-left: 10px;font-size: 11px;color: blue;cursor: pointer;" title="点击查看下一条" onclick="javascript:$(this).parent(\'.vReg_Error_Class_Top\').remove();showErrorInfoDiv();">失败('+sum+')</label>';
	  	html += '<label style="margin-left: 10px;font-size: 11px;color: blue;cursor: pointer;" title="我知道了（不提示下一条）..." onclick="javascript:$(this).parent(\'.vReg_Error_Class_Top\').remove();ErrorArray = new Array();showErrorInfoDiv();">x</label>';
  	}
  	html += '</div>';
  	$lbtBody = window.top.document != undefined ? (window.top.document.body != undefined ? window.top.document.body  : document.body) : document.body;
  	$($lbtBody).append(html);
}
function clearErrorInfoDiv(){
	if($('.vReg_Error_Class_Top')[0] != undefined && $('.vReg_Error_Class_Top').is(":visible")){
		$('.vReg_Error_Class_Top').remove();
	}else if(parent.$('.vReg_Error_Class_Top')[0] != undefined && parent.$('.vReg_Error_Class_Top').is(":visible")){
		parent.$('.vReg_Error_Class_Top').remove();
	}
}
$(document).ready(function(){  
   (function() {  
	   var initLbtLeft;
	   var initLbtTop;
        $(window.top != undefined ? window.top : window).scroll(function(){  
            var position = $(window).scrollTop();  
            $('.vReg_Error_Class_Top').css("top",position);
            
            if(jQuery('div[id^=LbtFlyPanelDiv]')[0] != undefined){
			    var position = jQuery(window.top != window.self ? window.top : window).scrollTop();  
			    var positionLeft = jQuery(window.top != window.self ? window.left : window).scrollLeft();  
			   	
			    var divList = jQuery('div[id^=LbtFlyPanelDiv]');
			    divList.each(function(i){
//				    if(initLbtLeft == null || initLbtLeft == undefined){
				    	initLbtLeft = parseInt(divList.eq(i).attr("initLeft"));
//				    }
//				    if(initLbtTop == null || initLbtTop == undefined){
				    	initLbtTop = parseInt(divList.eq(i).attr("initTop"));
//				    }
	//				initLbtTop = initLbtTop == (null || undefined) ? (screen.height*0.35 - (parseInt(jQuery('div[id^=LbtFlyPanelDiv]').height()))/2) : initLbtTop;
				    divList.eq(i).css({"top":position+initLbtTop,"left":positionLeft+initLbtLeft});
			    })
	        }
        });
    })();  
}); 



